package cn.wsalix.dozer.converter;

import org.dozer.DozerConverter;

import cn.wsalix.admin.entity.SysUser;

/**
 * @author jskyme
 * 单项转换，只可以从User转Long
 */
public class UserLongConverter extends DozerConverter<SysUser, Long> {
	public UserLongConverter() {
		super(SysUser.class, Long.class);
	}

	@Override
	public Long convertTo(SysUser source, Long destination) {
		if(source==null){
			return null;
		}
		return source.getId();
	}

	@Override
	public SysUser convertFrom(Long source, SysUser destination) {
		return null;
	}

}
